<include file="Public:header1" />
<div id="content">
        <div class="container-fluid">
          <div class="row-fluid">
            <div class="span12">
              <div class="widget-box">
                <div class="widget-title">
                  <span class="icon"><i class="icon-th"></i></span>
                  <h5>添加账单</h5>
                </div>
                <div class="widget-content nopadding">
                  <form action="/User/account_do" method="POST" id="turntable_form" class="form-horizontal">
                                      <div class="control-group">
                                          <label class="control-label">商品名称</label>
                                          <div class="controls">
                                              <input type="text" require name="goodname" value="">
                                              <span class="help-inline"></span>
                                          </div>
                                      </div>
                                      <div class="control-group">
                                          <label class="control-label">数量</label>
                                          <div class="controls">
                                              <input type="text" require name="amount" value="">
                                              <span class="help-inline"></span>
                                          </div>
                                      </div>
                                      <div class="control-group">
                                          <label class="control-label">价钱</label>
                                          <div class="controls">
                                              <input type="text" require name="money" value="">
                                              <span class="help-inline"></span>
                                          </div>
                                      </div>
                    <div class="form-actions">
                      <button type="submit" class="btn btn-success">保存</button>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="container-fluid">
        <div class="row-fluid">
          <div class="span12">
            <div class="widget-box">
              <div class="widget-title">
                <span class="icon"> <i class="icon-th"></i></span>
                <h5>当天账单列表</h5>
              </div>
                    <div class="widget-content nopadding">
                      <div class="dataTables_wrapper">
                        <table id="table" class="table table-bordered">
                    <tbody>
                      <tr class="table_header">
                        <th>序号</th>
                        <th>登记时间</th>
                        <th>商品名称</th>
                        <th>数量</th>
                        <th>价钱</th>
                        <th>操作</th>
                      </tr>
                    </tbody>
                    <tbody>
                      <foreach name="list" item="vo" >
                        <tr>
                          <td>{$vo.accountid}</td>
                          <td>{$vo.day|date='Y-m-d',###}</td>
                          <td>{$vo.goodname}</td>
                          <td>{$vo.amount}</td>
                          <td>{$vo.money}</td>
                          <td>
                            <p class="opr">
                              <span><i class="icon-pencil"></i><a href="/User/account_edit?id={$vo.accountid}" >编辑</a></span>
                              <span><i class="icon-pencil"></i><a href="/User/account_drop?id={$vo.accountid}">删除</a></span>
                            </p>
                          </td>
                        </tr>
                      </foreach>
                    </tbody>
                        <h2>合计：{$money}</h2>
                        </table>
                      </div>
                      {$page}
                    </div>
            </div>
          </div>
        </div>
      </div>
</div>
<div class="row-fluid">
  <div id="footer" class="span12"> 2014 &copy; am项目</div>
</div>
<script src="__PUBLIC__/Matrix/js/jquery.min.js"></script> 
<script src="__PUBLIC__/Matrix/js/bootstrap.min.js"></script> 
<script src="__PUBLIC__/Matrix/js/matrix.js"></script>
</body>
</html>